﻿using System.Windows;

namespace SellAvi.Views
{
    /// <summary>
    /// Interaction logic for WindowDebug.xaml
    /// </summary>
    public partial class WindowDebug : Window
    {
        public WindowDebug()
        {
            InitializeComponent();
            this.window.Loaded += Window_Loaded;
        }

        private void bntClose_OnClick(object sender, RoutedEventArgs e)
        {
            this.window.Close();
        }

        private void btnSave_OnClick(object sender, RoutedEventArgs e)
        {
            logCtrl.ExportLog();
        }
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            var desktopWorkingArea = System.Windows.SystemParameters.WorkArea;
            this.Width = System.Windows.SystemParameters.PrimaryScreenWidth;
            this.Height = 250;
            this.Left = desktopWorkingArea.Right - this.Width;
            this.Top = desktopWorkingArea.Bottom - this.Height;

        }
    }
}
